package com.alinesno.cloud.initializr.starter.entity;

import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;
import com.alinesno.sdk.generator.table.annotation.Column;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2020-11-20 10:06:08
 */
@TableName("build_git")
public class BuildGitEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ColumnComment("仓库地址")
	@Column(length = 64)
	@TableField
	private String gitName; // 账号地址
	
	@ColumnComment("仓库图标")
	@Column(length = 64)
	@TableField
	private String gitIcon ;

	@ColumnComment("仓库地址")
	@Column(length = 64)
	@TableField
	private String gitHost; // 账号地址

	@ColumnComment("gitlab管理员")
	@Column(length = 64)
	@TableField
	private String gitUsername; // 仓库空间

	@ColumnComment("仓库空间")
	@Column(length = 64)
	@TableField
	private String gitNamespace ; // 仓库空间

	@ColumnComment("仓库类型")
	@Column(length = 16)
	@TableField
	private String gitType; // 仓库类型

	@ColumnComment("仓库管理员密码")
	@Column(length = 512)
	@TableField
	private String accessPrivateToken; //
	
	@ColumnComment("内置gitlab")
	@Column(length = 1)
	@TableField("inner_git")
	private int innerGit ;
	
	@ColumnComment("是否绑定")
	@Column(length = 1)
	@TableField("has_bing")
	private int hasBing ; // 是否绑定
	
	@ColumnComment("刷新token")
	@TableField("refresh_token")
	private String refreshToken ; 
	
	@ColumnComment("超时时间")
	@TableField("expires_in")
	private int expiresIn ; 
	
	@ColumnComment("绑定第三方git账号信息")
	@TableField("bing_git_info")
	private String bingGitInfo ; // 绑定第三方git账号信息

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public int getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getGitUsername() {
		return gitUsername;
	}

	public void setGitUsername(String gitUsername) {
		this.gitUsername = gitUsername;
	}

	public String getBingGitInfo() {
		return bingGitInfo;
	}

	public void setBingGitInfo(String bingGitInfo) {
		this.bingGitInfo = bingGitInfo;
	}

	public int getInnerGit() {
		return innerGit;
	}

	public void setInnerGit(int innerGit) {
		this.innerGit = innerGit;
	}

	public int getHasBing() {
		return hasBing;
	}

	public void setHasBing(int hasBing) {
		this.hasBing = hasBing;
	}

	public String getGitNamespace() {
		return gitNamespace;
	}

	public void setGitNamespace(String gitNamespace) {
		this.gitNamespace = gitNamespace;
	}

	public String getGitIcon() {
		return gitIcon;
	}

	public void setGitIcon(String gitIcon) {
		this.gitIcon = gitIcon;
	}

	public String getGitName() {
		return gitName;
	}

	public void setGitName(String gitName) {
		this.gitName = gitName;
	}

	public String getGitHost() {
		return gitHost;
	}

	public void setGitHost(String gitHost) {
		this.gitHost = gitHost;
	}

	public String getGitType() {
		return gitType;
	}

	public void setGitType(String gitType) {
		this.gitType = gitType;
	}

	public String getAccessPrivateToken() {
		return accessPrivateToken;
	}

	public void setAccessPrivateToken(String accessPrivateToken) {
		this.accessPrivateToken = accessPrivateToken;
	}

}
